{% load i18n %}
<form id="djangobmfform" class="form" role="form" method="post" action="api/">
{% csrf_token %}
<table class="table table-striped table-condensed table-hover">
  <thead>
    <tr>
      <th><input type="checkbox" name="" value="" autocomplete="off" disabled="disabled"></th>
      <th>{% trans "Date" %}</th>
      <th>{% trans "Name" %}</th>
      <th>{% trans "Product" %}</th>
      <th class="visible-lg visible-md">{% trans "Project" %}</th>
      <th class="visible-lg">{% trans "Employee" %}</th>
      <th class="text-right">
        <button class="btn btn-xs btn-success" type="submit">
          <span class="glyphicon glyphicon-book"></span>
        </button>
      </th>
    </tr>
  </thead>
  <tbody>
    {% for obj in object_list %}
    <tr>
      <td>{% if not obj.has_invoice  %}<input type="checkbox" name="pk.{{ obj.pk }}" value="1" autocomplete="off"> {% endif %}</td>
      <td>{{ obj.date|date:"SHORT_DATE_FORMAT" }}</td>
      <td>{{ obj.name }}</td>
      <td>{{ obj.amount }}x {{ obj.product }}</td>
      <td class="visible-lg visible-md">{{ obj.project }}</td>
      <td class="visible-lg">{{ obj.employee }}</td>
      <td class="text-right">
        <a class="btn btn-xs btn-primary" href="{{ obj.bmfmodule_detail }}">
          <span class="glyphicon glyphicon-list"></span>
        </a>
      </td>
    </tr>
    {% endfor %}
  </tbody>
</table>
</form>
